home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ Win2K TCPIP Sec 1.xpl < prev    next >
Text File  |  2001-05-08  |  2KB  |  53 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="3"
  4. "UIPATH"="Network\TCP/IP Hardening
  5. "NAME"="SYN Attack Protection"
  6. "OSVERSION"="000101"
  7. "VERSION"="1.00"
  8. "LANGUAGE"="VBScript"
  9. "WARNING"="1"
  10. "TEXT 1"="No SYN protection (Default)"
  11. "TEXT 2"="Reduce retransmission retries, delay route cache entries (normal)" 
  12. "TEXT 3"="Same as above plus delay indication (very rarely used)" 
  13. "DESCRIPTION 1"="Windows, be default, does not have any protection against so called SYN attacks."
  14. "DESCRIPTION 2"="In Windows 2000 and upwards you can activate an build-in protection against this type of attacks by using these settings."
  15. "DESCRIPTION 3"="If you decide to activate this function, please note the "SYN Attack Protection Triggers" as well."
  16. "AUTHOR"="Xteq Systems"
  17. "CONTACTURL"="http://www.xteq.com/"
  18. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  19. "COMMENT 1"=" "
  20.  
  21.  
  22.  
  23. sP="HKLM\System\CurrentControlSet\Services\TcpIp\Parameters\SynAttackProtect"
  24.  
  25. Sub Plugin_Initialize 
  26.  i=RegReadValue(sP)
  27.  
  28.  if i=0 or IsEmpty(i) then 
  29.     SetUIElement 1,true
  30.  elseif i=1 then
  31.     SetUIElement 2,true
  32.  else
  33.     SetUIElement 3,true
  34.  end if
  35.  
  36. End Sub
  37.  
  38. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  39.  if GetUIElement(1)=true then
  40.     if RegValueExists(sP) then Call RegDeleteValue(sP)
  41.  elseif GetUIElement(2)=true then
  42.     Call RegWriteValue(sP,1,2)
  43.  else
  44.     Call RegWriteValue(sP,2,2)
  45.  end if
  46.  
  47.  Call Restart()
  48. End Sub
  49.  
  50. Sub Plugin_Terminate 
  51. End Sub
  52.  
  53.